package com.newbsd.web.maventest.util;

import java.io.IOException;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
 * 
 * @author 张成玉-实用网页跳转类
 *
 */
public class HttpUtil {
	public static void forward(HttpServletRequest request, HttpServletResponse response,String url) throws ServletException, IOException{
		
		RequestDispatcher dis = request.getRequestDispatcher(url);
		
		dis.forward(request, response);
	}
}